package com.testscripts;

import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

public class iframetest {

	/**
	 * Quinty's Test
	 */
  @Test
	public  void test() {
	  WebDriver driver=new FirefoxDriver();
	  driver.get("file:///C:/Documents%20and%20Settings/Administrator/%E6%A1%8C%E9%9D%A2/a.html");
	   driver.switchTo().frame("frame");
	   System.out.println(driver.findElement(By.id("frame")).getText().toString());

	}

}